<SCRIPT LANGUAGE="JavaScript">
<!--

function f_gridDblFunc(keyID) {
	var curKeyID = trselObj.f_get_select_key();
	curKeyID = curKeyID[0];
	if (curKeyID == "") return ;
	//alert("curKeyID = " + curKeyID);

	var qltid = trselObj.f_getTDValueByKeyName(curKeyID ,"in_mat_acc_pro.qlt_in_id");

	var contextPath = "<%=CONTEXTPATH%>";
	var left_funcid = "AUDIT_IN_WGT_PROV";
	var right_funcid = "AUDIT_IN_QLT_PROV";

	var left_where_sql = " in_mat_iwgt_acc.acc_id=?";
	var left_where_value = curKeyID;
	var left_where_type = "string";

	var right_where_sql = " in_mat_iqlt_pro_det.qlt_in_id = ?";
	var right_where_value = qltid;
	var rigth_where_type = "string";

//	var href = contextPath + g_layoutForm + funcid + "&pageType=subgrid";

	var href = contextPath + "/wzmis/finance/frame_audit_prov_mat.jsp?left_funcid=" + left_funcid;
	href += "&right_funcid=" +right_funcid ;
	href += "&left_where_sql="+left_where_sql;
	href += "&left_where_value="+left_where_value;
	href += "&left_where_type="+left_where_type;
	href += "&right_where_sql="+right_where_sql;
	href += "&right_where_value="+right_where_value;
	href += "&rigth_where_type="+rigth_where_type;
	href += "&pageType=grid";

	parent.frames("frmformdata").document.location = href;

}

function f_com_audit() {
	var sKeyID = trselObj.f_get_select_key();
	if (sKeyID.length == 0) return ;

	document.forms(formName).ActionType.value = "com_audit";
	document.forms(formName).target = targetName;
	document.forms(formName).submit();
}

//-->
</SCRIPT>